package com.wuwei.handler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.wuwei.pojo.CommonResult;
import com.wuwei.pojo.Payment;

/**
 * @description: CustomerExceptionHandler <br>
 * @date: 2021/2/22 18:21 <br>
 * @author: wuwei666 <br>
 * @version: 1.0 <br>
 */
public class CustomerExceptionHandler {
    public static CommonResult<Payment> handlerException(BlockException exception){
        return new CommonResult<Payment>(444, "error,服务忙>>>Global---1", null);
    }

    public static CommonResult<Payment> handlerException2(BlockException exception){
        return new CommonResult<Payment>(555, "error,服务错误>>>Global---2", null);
    }
}
